<template>
  <div class="app-content">
    <div class="add-container--heard">
      <div class="heard--service">
        <img src="../assets/kefu.png" alt="">
      </div>
      <div class="heard--search">
        <img src="../assets/sousuo.png" alt="">
        <input type="text" autocomplete="off" :placeholder="$store.state.a">
      </div>
      <div class="heard--Shopping">
        <img src="../assets/gouwuche.png" alt="">
      </div>
    </div>
    <div class="SalesVolume">
      <span>综合</span>
      <span>销量<img src="../assets/triangle.png" class="SalesVolume__img"></span>
      <span>价格<img src="../assets/triangle.png" class="SalesVolume__img"></span>
    </div>
    <div class="block"></div>
    <div class="body--content" v-for="(item, key) in this.arr" :key="key">
      <img :src="item.prodImage[0]" alt="" class="body--content--img">
      <div class="body--content__box">
      <span class="introduction">{{item.prodSupTitle}}</span>
      <span class="Discount">券后价</span><span class="Discount--money">￥{{item.currentPrice}}</span><br>
      <span class="price">原价:</span><span class="PresentPrice">￥{{item.originPrice}}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "SearchRecord",
  data(){
    return {
      arr: [],
      res: '',
    }
  },
  created() {
    this.arr = this.$route.params.data;
  }
}
</script>

<style scoped>
  .app-content{
    width: 100vw;
    height: 100vh;
  }
  .add-container--heard{
    width: 100vw;
    height: 1.1rem;
    border-bottom: silver 1px solid;
    z-index: 9;
    top: 0;
    background: white;
  }
  .heard--service{
    display: inline-block;
    width: 1.3066rem;
    height: 1.1rem;
  }
  .heard--service>img{
    width: .6rem;
    height: .6rem;
    position: relative;
    left: .3rem;
    top: .3rem;
  }
  .heard--search{
    display: inline-block;
    width: 7.45333rem;
    height: .8533rem;
    background: #f5f5f5;
    border-radius: .2rem;
    margin-left: -10px;
  }
  .heard--search>img{
    display: inline-block;
    width: .4366rem;
    height: .4366rem;
    position: relative;
    top: .19rem;
    left: .2rem;
  }
  .heard--search>input{
    display: inline-block;
    position: relative;
    width: 5rem;
    height: .4366rem;
    left: .5rem;
    top: .1rem;
    font-size: .35rem;
    border: none;
    outline: none;
    background: #f5f5f5;
  }
  .heard--Shopping{
    display: inline-block;
    width: 1.2rem;
    height: 1.1rem;
  }
  .heard--Shopping>img{
    width: .6rem;
    height: .6rem;
    position: relative;
    left: .3rem;
    top: .3rem;
  }
  .SalesVolume{
    width: 100vw;
    line-height: 92px;
    text-indent: 30px;
  }
  .SalesVolume>span{
    display: inline-block;
    width: 130px;
    font-size: 29px;
  }
  .SalesVolume>span:nth-child(1){
    color: #458cf9;
  }
  .SalesVolume__img{
    display: inline-block;
    width: .5rem;
    position: relative;
    top: 5px;
    left: 5px;
  }
  .block{
    width: 100vw;
    height: 12px;
    background: #f2f2f2;
  }
  .body--content{
    width: 100vw;
    height: 167px;
  }
  .body--content__box{
    width: 515px;
    height: 167px;
    border-bottom: 1px solid #f1f1f1;
    margin-top: 20px;
    margin-left: 230px;
  }
  .body--content--img{
    display: inline-block;
    width: 126px;
    height: 146px;
    margin-left: 63px;
    margin-top: 15px;
    float: left;
  }
  .introduction{
    display: inline-block;
    width: 498px;
    font-size: 31px;
    color: #262626;
    margin-top: 22px;
  }
  .Discount{
    display: inline-block;
    width: 96px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    color: white;
    font-size: 24px;
    background: #458cf9;
    border-radius: 20px;
    margin-top: 20px;
  }
  .Discount--money{
    display: inline-block;
    font-size: 24px;
    color: #4c4c4c;
    margin-left: 18px;
    margin-top: -2px;
  }
  .price{
    display: inline-block;
    font-size: 22px;
    color: #b7b7b7;
    margin-top: 13px;
  }
  .PresentPrice{
    margin-left: 14px;
    color: #b7b7b7;
  }
</style>
